package com.yiming.shiro.repository;

import com.yiming.shiro.repository.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserRepository extends JpaRepository<User, Long> {

    User findFirstByNameAndActiveTrue(String name);

    List<User> findAllByActiveTrue();
}
